import Vue from 'vue'
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// import VueLazyload from 'vue-lazyload'
// import loading from './assets/images/'
import router from '@/router'
import store from '@/store'
import App from '@/App'
import TypeNav from '@/components/TypeNav'
import '@/filters'
import '@/mock'
import './assets/css/reset.css'
import 'nprogress/nprogress.css'
import './assets/iconfont/iconfont.css'

import { Row, Button, Message, MessageBox } from 'element-ui'
import VueLazyload from 'vue-lazyload'
import loading from "./assets/images/loading.gif";
// Vue.use(Row)
// Vue.use(Button)
// Vue.use(VueLazyload, {
//   loading,
// })
Vue.use(VueLazyload, {
  loading,
})
Vue.prototype.$message = Message
Vue.config.productionTip = false
Vue.component(Row.name, Row)
Vue.component(Button.name, Button)
Vue.component('TypeNav', TypeNav)
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
// Vue.use(ElementUI)
new Vue({
  render: (h) => h(App),
  store,
  router,
  //安装总线
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')
